package com.gengzp.common.model.nacos.req;

import com.gengzp.common.document.annotations.ApiModel;
import com.gengzp.common.document.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.logging.log4j.core.config.plugins.validation.constraints.NotBlank;

import java.io.Serial;
import java.io.Serializable;

/**
 * @ClassName EditYamlReq
 * @Description 编辑yaml配置请求实体
 * @Author gengzp
 * @Date 2025/5/31 12:37
 */
@Data
@ApiModel(description = "编辑yaml配置请求实体")
public class EditYamlReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 3218829767997772910L;

    @NotBlank(message = "数据id不能为空")
    @ApiModelProperty(value = "数据id", required = true)
    private String dataId;

    @ApiModelProperty(value = "yaml配置名", required = true)
    private String yamlName;

    @ApiModelProperty(value = "yaml配置内容", required = true)
    private String yamlContent;

}
